/*****************************************************************************/
/**
 *  @file   MetaModulePixelSend.h
 *  @author Allan Lorant, Naohisa Sakamoto
 */
/*----------------------------------------------------------------------------
 *
 *  Copyright (c) Visualization Laboratory, Kyoto University.
 *  All rights reserved.
 *  See http://www.viz.media.kyoto-u.ac.jp/kvs/copyright/ for details.
 *
 *  $Id$
 */
/*****************************************************************************/
#ifndef META_MODULE_PIXEL_SEND_H_INCLUDE
#define META_MODULE_PIXEL_SEND_H_INCLUDE

#include <flowvr/app/components/metamoduleflowvr-run-ssh-singleton.comp.h>
#include "ModulePixelSend.h"


/*===========================================================================*/
/**
 *  @brief  Meta module for PixelSend.
 */
/*===========================================================================*/
class MetaModulePixelSend : public flowvr::app::MetaModuleFlowvrRunSSHSingleton<ModulePixelSend>
{
    typedef flowvr::app::MetaModuleFlowvrRunSSHSingleton<ModulePixelSend> SuperClass;

public:

    MetaModulePixelSend( const std::string& id ):
        SuperClass( id, flowvr::app::CmdLine("PixelSend") )
    {
        SuperClass::setInfo("Metamodule launching PixelSend module");
        SuperClass::getRun()->openDisplay(":0");
    }

    flowvr::app::Component* create() const
    {
        return new MetaModulePixelSend( SuperClass::getId() );
    }
};

#endif // META_MODULE_PIXEL_SEND_H_INCLUDE
